<?php 
require_once("admin_header.php");

$isdo = false;
include_once("../fckeditor/fckeditor.php") ;
if(isset($_POST['do']))
{
	require_once("../include/check_post_key.php");
	$fp=fopen("msg.txt","wb");
	fputs($fp, stripslashes($_POST['msg']));
	fclose($fp);
	$isdo = true;
}
$msg=file_get_contents("msg.txt");

?>

	

      <div class="fr wid59">
        <?php 
	        if($isdo)
				echo "更新时间： ".date('Y-m-d h:i:s');
		?>
        <h2 class="h2">设置公告</h2>
        <div class="middle">
	<form action='setmsg.php' method='post'>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>
    <td height="40" align="left">
    <?php
	$fck_description = new FCKeditor('msg') ;
	$fck_description->BasePath = '../fckeditor/' ;
	$fck_description->Height = 300 ;
	$fck_description->Width=600;
	$fck_description->Value = $msg;
	$fck_description->Create() ;
	?></td>
  </tr>
  <tr>
    <td height="40" align="left">
    <input type="image" name="submit" id="submit" src="<?php echo "../template/$BM_TEMPLATE/images/"; ?>02_03-16.jpg"/>
    <input type="image" name="reset" id="reset" src="<?php echo "../template/$BM_TEMPLATE/images/"; ?>06_03.jpg" onclick="this.form.reset(); return false;" /></td>
	</tr>
  <tr>
    <td height="40" align="left">&nbsp;</td>
  </tr>
  <tr>
    <td height="40" align="left">&nbsp;</td>
  </tr>
  <tr>
    <td height="40" align="left">&nbsp;</td>
  </tr>
</table>
	<input type='hidden' name='do' value='do'>
	<?php require_once("../include/set_post_key.php");?>
</form>

        </div>
  </div>
     
<?php 
require_once('menu.php');
require_once('admin_footer.php');
?>
